import java.io.IOException;
public class Main {

    public static void main(String []args){

        UrlParser parser=new UrlParser();
        OutputUrls output=new OutputUrls();

        try {
            output.getFileOfReferences(parser.getParsedUrl());

        } catch (IOException e) {
            e.printStackTrace();
        }
        catch (NoSuchUrlException e){
            e.printStackTrace();
            System.out.println("You've got NoSuchUrlException! Try again! Good Luck!");
        }
    }
}